﻿using Domain.Entities.ToDo;
using FluentMigrator;
using FrameworkCore.Extensions;

namespace AiBLSmartEdu.Module.ToDo.API.Migrations;

[Migration(202410161414)]
public class CreateTableForToDo : ForwardOnlyMigration
{
    public override void Up()
    {
        MigrationExpressions.CreateTableAndBaseAuditableAndSoftDeletedEntityFor<ToDoItem>(Create);
        MigrationExpressions.CreateTableAndBaseAuditableAndSoftDeletedEntityFor<ToDoCategory>(Create);
        MigrationExpressions.CreateTableFor<ToDoItemCategory>(Create);
    }
}
